import request from '@/utils/request'

export function getAllRoleInfosByPageAndConditions(data) {
  return request({
    url: '/superManager/getAllRoleInfosByPageAndConditions',
    method: 'get',
    params:data
  })
}

export function addRoleInfo(data) {
  return request({
    url: '/superManager/addRoleInfo',
    method: 'post',
    data
  })
}

export function updateRoleInfo(data) {
  return request({
    url: '/superManager/updateRoleInfo',
    method: 'put',
    data
  })
}

export function deleteRoleInfo(id) {
  return request({
    url: '/superManager/deleteRoleInfo',
    method: 'delete',
    params:id
  })
}

export function deleteRolesInfo(ids) {
  return request({
    url: '/superManager/deleteRolesInfo',
    method: 'delete',
    params:ids
  })
}

